package mvc.sss;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import mvc.struts.action.Action;
import mvc.struts.form.ActionForm;

public class SAction implements Action {

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response, ActionForm form,
			Map<String, String> map) {
		String url="shibai";
		SForm sForm=(SForm) form;
		if(sForm.getName().equals("cql")){
			url="chenggong";
		}
		return map.get(url);
	}

}
